#include <windows.h>
#include <stdio.h>

char __path[MAX_PATH];

char *GetFullPath() {
	GetModuleFileName(NULL, __path, MAX_PATH);
	return __path;
}

extern const char* fs_ex_root_dir;
int
fs_open_test(const char *name)
{
	char full_filename[256];
	FILE *f;

	snprintf(full_filename, 255, "%s%s", fs_ex_root_dir, name);
	full_filename[255] = 0;

	f = fopen(full_filename, "rb");
	printf("%s open %s\n", full_filename, f ? "ok" : "fail");
}